package com.traffic.managent.base;

import com.jfinal.plugin.activerecord.Model;
import com.traffic.managent.util.StringUtils;

public class SessionUser<M extends Model<M>> extends CxBaseModel<M> {

	private static final long serialVersionUID = 5249151878990903406L;

	public String getUseriD() {
		return getStr("ids");
	}

	public String getUserName() {
		if (StringUtils.isNotEmpty(getStr("username"))) {
			return getStr("username");
		}
		return getStr("username");
	}

	public Integer getBackSiteId() {
		return getInt("back_site_id");
	}

}
